﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Atlantyda
{
    public class Person
    {
        private String name;
        private String group_name;
        private bool is_controlled;
        private int coordiante_x;
        private int coordiante_y;
        private int energy;
        private System.Drawing.Image image;
        private bool connected = true;

        public bool Connected
        {
            get { return this.connected; }
            set { this.connected = value; }
        }

        public Person(String name, String group_name, int coordinate_x, int coordinate_y, int energy, bool is_controlled)
        {
            this.name = name;
            this.group_name = group_name;
            this.coordiante_x = coordinate_x;
            this.coordiante_y = coordinate_y;
            this.energy = energy;
            this.is_controlled = is_controlled;
            this.image = Properties.Resources.GetRandomPawn();
        }

        public Person(String name, String group_name, int coordinate_x, int coordinate_y, int energy)
        {
            this.name = name;
            this.group_name = group_name;
            this.coordiante_x = coordinate_x;
            this.coordiante_y = coordinate_y;
            this.is_controlled = false;
            this.image = Properties.Resources.GetRandomPawn();
        }

        public String Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public System.Drawing.Image Image
        {
            get { return this.image; }
            set { this.image = value; }
        }

        public int Energy
        {
            get { return this.energy; }
            set { this.energy = value; }
        }

        public String GroupName
        {
            get { return this.group_name; }
            set { this.group_name = value; }
        }

        public bool IsControlled
        {
            get { return this.is_controlled; }
            set { this.is_controlled = value; }
        }

        public int CoordianteX
        {
            get { return this.coordiante_x; }
            set { this.coordiante_x = value; }
        }

        public int CoordianteY
        {
            get { return this.coordiante_y; }
            set { this.coordiante_y = value; }
        }
    }
}
